package cn.dubito.springboot.learning.param;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author liliang
 * @description:
 * @date 2018/1/15.
 */
@Data
public class OrderParam {

    /**
     * 买家姓名
     */
    @NotEmpty(message = "姓名不能为空")
    private String name;

    /**
     * 买家手机号
     */
    @NotEmpty(message = "手机号不能为空")
    private String phone;

    /**
     * 收货地址
     */
    @NotEmpty(message = "收货地址不能为空")
    private String address;

    /**
     * 微信 openid
     */
    @NotEmpty(message = "openid不能为空")
    private String openid;

    /**
     * 购物车
     */
    @NotEmpty(message = "购物车没有商品")
    private String items;
}
